<template>
  <div>
    <div class="hearder">多选题 选项：(以下选中的选项为正确答案)</div>
    <el-checkbox-group v-model="checkList">
      <el-checkbox
        :label="item.isRight"
        v-for="item in book.options"
        :key="item.id"
        class="el_checkbox"
        >{{ item.title }}</el-checkbox
      >
    </el-checkbox-group>
  </div>
</template>

<script>
export default {
  data () {
    return {
      checkList: [1]
    }
  },
  // 计算属性
  computed: {},
  components: {},
  methods: {},
  props: {
    book: {
      type: Object,
      required: true
    }
  },
  // 监听
  watch: {
    // immediate: true 刚加载就进行监听
  },
  created () {},
  mounted () {}
}
</script>

<style scoped lang="scss">
.hearder {
  margin-bottom: 15px;
}
.el_checkbox {
  display: block;
  margin-bottom: 15px;
  pointer-events: none;
}
</style>
